/**
 * 
 */
package com.android.pa;

import java.util.Comparator;

/**
 * Compares two tasks according to their startTime.
 * Task t1 is considered greater than t2 iff its startTime is after t2.
 * @author matanskii
 */
public class TaskComparator implements Comparator<Task>
{

	/*
	 * Returns 1 of t1 is greater than t2, i.e. t1 starts after t2.
	 * otherwise, -1. If they are equal, returns 0.
	 * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object)
	 */
	public int compare(Task arg0, Task arg1)
	{
		return arg0.compareTo(arg1);	
	}

}
